<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'get';
cfc('core')->checklogin('jy_jdpm/member.index/');
$return=array();
$nickname=pdo_getcolumn('jy_jdpm_member',array('mid'=>$_SESSION['uid']),'nickname');
$return['nickname']=$nickname;
$return['channel'] = pdo_getall('jy_jdpm_goods_group',array('uniacid'=>$_SESSION['uniacid'],'pid' => 0),'','','paixu asc');
$membersinfo=pdo_get('jy_jdpm_member',array('uniacid'=>$_SESSION['uniacid'],'mid'=>$_SESSION['uid']));
$orderlist = pdo_getall('jy_jdpm_order',array('uniacid'=>$_SESSION['uniacid'],'mid'=>$_SESSION['uid']));
$return['info']=$membersinfo;
$return['orderlist']=$orderlist;
        // 账户安全等级
        $score = 0;
        if ($membersinfo['verify_mobile'] == 1) {
            $score += 20;
        }
        if ($membersinfo['verify_email'] == 1) {
            $score += 20;
        }
        if (!empty($membersinfo['paypwd'])) {
            $score += 20;
        }
        if ($membersinfo['idcard_check'] == 2) {
            $score += 20;
        }
        if (!empty($membersinfo['question'])) {
            $score += 20;
        }

$return['score']=$score;
set_html('title','会员中心');
exi($return);